package com.cyt.work.divideclass.model.po;

import com.cyt.base.util.BaseUtil;
import com.cyt.base.util.DictCode;
import com.cyt.sys.model.po.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 智能分班-智能分班实体类
 *
 * @author caideyong
 * @date 2019-12-20 13:54:04
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_divideclass")
public class Divideclass implements Serializable {

	/**
     * 主键
     */ 
	@Id
	private String id;

	/**
     * 标题
     */ 
	@Column(name = "TITLE")
	private String title;

	/**
     * 分班学段(0：文科,1:理科,2:高中,3:初中,4:小学)
     */ 
	@Column(name = "DIVIDE_TYPE")
	private String divideType;

	/**
     * 分班总人数
     */ 
	@Column(name = "DIVIDE_NUM")
	private String divideNum;

	/**
     * 状态(待分班,已分班)
     */ 
	@Column(name = "DIVIDE_STATUS")
	private String divideStatus;

	/**
	 * 结果状态(待发布，已发布)
	 */
	@Column(name = "RESULT_STATUS")
	private String resultStatus;

	/**
     * 创建人
     */ 
	@Column(name = "CREATOR")
	private String creator;

	/**
     * 创建时间
     */ 
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
     * 更新时间
     */ 
	@Column(name = "UPDATE_TIME")
	private Date updateTime;

	/**
     * 更新人
     */ 
	@Column(name = "UPDATOR")
	private String updator;

	/**
     * 删除标志
     */ 
	@Column(name = "REMOVE_TAG")
	private String removeTag;

	/**
     * 应用id
     */ 
	@Column(name = "APPLY_ID")
	private String applyId;

	/**
	 * 创建对象
	 *
	 * @param sysUser 当前用户信息
	 * @author caideyong
	 * @date 2019-12-20 13:54:04
	 */
	public Divideclass(SysUser sysUser) {
		this.id = BaseUtil.uId();
		this.removeTag = DictCode.BASE_REMOVE_TAG_NORMAL;
		this.createTime = new Date();
		this.creator = sysUser.getId();
		this.updateTime = new Date();
		this.updator = sysUser.getId();
	}
}